package com.sky.mapper;


import com.github.pagehelper.Page;
import com.sky.dto.DishPageQueryDTO;
import com.sky.entity.DishFlavor;
import com.sky.vo.DishVO;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface DishFlavorMapper { //dao数据层必须是一个接口


     void insertbatch(List<DishFlavor> flavors);


    Page<DishVO> pagequery(DishPageQueryDTO dishPageQueryDTO);


    void deletebydishid(List<Long> ids);

    @Select("SELECT * from dish_flavor where dish_id = #{id}")
    List<DishFlavor> getbyfalvor(Long id);
}
